//
//	HOME AUTOMATION GATEWAY PROJECT
//
//  (c) 2008 mocom software GmbH & Co KG
//	for European Microsoft Innovation Center
//
//  $Author: volker $
//  $Date: 2009-02-26 16:55:56 +0100 (Do, 26. Feb 2009) $
//  $Revision: 276 $
//
//  Microsoft dotNetMF Project
//  Copyright ©2001,2002,2003,2004 Microsoft Corporation
//  One Microsoft Way, Redmond, Washington 98052-6399 U.S.A.
//  All rights reserved.
//  MICROSOFT CONFIDENTIAL
//
//-----------------------------------------------------------------------------
#include <tinyhal.h>
#include "at91_i2c.h"

#if defined(ADS_LINKER_BUG__NOT_ALL_UNUSED_VARIABLES_ARE_REMOVED)
#pragma arm section zidata = "g_AT91_I2C_Driver"
#endif

extern AT91_I2C_Driver g_AT91_I2C_Driver;

#if defined(ADS_LINKER_BUG__NOT_ALL_UNUSED_VARIABLES_ARE_REMOVED)
#pragma arm section zidata
#endif

BOOL I2C_Internal_Initialize()
{
    return AT91_I2C_Driver::Initialize();
}

BOOL I2C_Internal_Uninitialize()
{
    return AT91_I2C_Driver::Uninitialize();
}

void I2C_Internal_XActionStart( I2C_HAL_XACTION* xAction, bool repeatedStart )
{
    AT91_I2C_Driver::XActionStart( xAction, repeatedStart );
}

void I2C_Internal_XActionStop()
{
    AT91_I2C_Driver::XActionStop();
}

void I2C_Internal_GetClockRate( UINT32 rateKhz, UINT8& clockRate, UINT8& clockRate2 )
{
    AT91_I2C_Driver::GetClockRate( rateKhz, clockRate, clockRate2 );
}

void I2C_Internal_GetPins( GPIO_PIN& scl, GPIO_PIN& sda )
{
    return AT91_I2C_Driver::GetPins( scl, sda );
}
